/*
** my_sort_int_tab.c for libmy in /home/noret_a//libmyV2
**
** Made by christophe noret
** Login   <noret_a@epitech.net>
**
** Started on  Tue Oct  9 11:43:56 2012 christophe noret
** Last update Wed Oct 10 15:04:38 2012 christophe noret
*/

void	my_sort_int_tab(int *tab, int size)
{
  int	i;
  int	bool;
  bool = 1;
  while (bool == 1)
    {
      i = 0;
      bool = 0;
      while (i < (size - 1))
        {
          if (tab[i] > tab[i + 1])
            {
              my_swap(tab + i, tab + i + 1);
              bool = 1;
            }
	  i++;
        }
    }
}
